import * as THREE from 'three';

const geometry = new THREE.CircleGeometry(30,4);

// 创建纹理加载器对象
const loaderTex = new THREE.TextureLoader();
// 加载图片返回一个纹理对象
const texture = loaderTex.load('./earth.jpg')

const material = new THREE.MeshBasicMaterial({ 
    // 设置材质的颜色贴图
    map: texture,
    side: THREE.DoubleSide,
})
// material.map = texture;


const mesh = new THREE.Mesh(geometry, material);




export default mesh;